/**
 * 用于服务的上下文环境
 */
package com.flute.framework.data.impl;

import java.io.File;

/**
 * @author Jazz
 */
public final class ServiceContext {

    private ServiceContext() {
        throw new RuntimeException("Cannot create ServiceContext");
    }

    private static String rootDir = "";

    public static String getRootDir() {
        if ("".equals(rootDir)) {
            rootDir = System.getProperty("user.dir");
            rootDir = (new StringBuilder(rootDir)).append(File.separator)
                    .toString();
        }
        return rootDir;
    }

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub

    }

}
